<?php
	require_once( 'core_DataBaseConnect.php' );
	require_once( 'core_Response.php' );
	require_once( 'core_ErrorCode.php' );
	require_once( 'dao_MemberDAO.php' );
	require_once( '_configs.php' );
	
	function func( $con, $post, $returnType )
	{
		$nickname 		= $post[ 'nickname' ];
		
		//1. id 중복 체크
		if( MemberDAO::isSameNickname( $con, $nickname ) )
		{
			return Response::FAIL( ErrorCode::ALREADY_NICKNAME, '이미 존재하는 닉네임입니다.', $returnType, $returnType );
		}
		
		return Response::SUCCESS( null, $returnType );
	}
?>